Projective simulation for classical learning agents: a comprehensive investigation