Associations of perinatal characteristics with endometriosis