Family of new exact solutions for longitudinally expanding ideal fluids