Investigating the psychological functioning of athletes: the integration of attachment theory and self-determination theory