Experimental determination of the heave and pitch transfer functions of a ship model in head waves