A 3-MeV Linac for Development of Accelerator Components at J-PARC