The method of elementary solutions for time-dependent problems in linearized kinetic theory