Flipped teaching eased the transition from face-to-face teaching to online instruction during the COVID-19 pandemic