Structural Relationships between Environmental Factors, Psychological Health, and Academic Performance in Medical Students Engaged in Online Learning during the COVID-19 Pandemic