Experimental multiphoton conditional state preparation and analysis