Spin-induced optical second harmonic generation in the centrosymmetric magnetic semiconductors EuTe and EuSe