Theoretical-study of the potential-energy curves of the series of diatomic radicals MeIIX .2. Application to BeCl and MgF radicals