Longitudinal Measurements and Beam Tuning in the J-PARC Linac MEBT1