Automated rotational therapy for the prevention of respiratory complications during mechanical ventilation