Replace printed error messages in H5MD_File.__init__ by exceptions