Homomorphism Autoencoder -- Learning Group Structured Representations from Observed Transitions