Experimental studies of emittance growth and energy spread in a photocathode RF gun