Previous prenatal loss as a predictor of perinatal depression and anxiety