Electromagnetic production of the hypertriton