Ultrafast E to Z photoisomerization of chiral biomimetic molecular switches