Psychological impact of the COVID-19 pandemic on primary care workers: a cross-sectional study