Central schemes and second order boundary conditions for 1D interface and piston problems in Lagrangian coordinates