Depression may cause period pain, study suggests