The role of infant-generated stimulus-contingencies in affect regulation and the development of attachment security