Relations for semileptonic weak interactions involving photons