Mental burden and perception of the study situation among undergraduate students during the COVID-19 pandemic: a cross-sectional study and comparison of dental and medical students