Unsupervised learning of reflexive and action-based affordances to model adaptive navigational behavior