Effective lagrangian for heavy and light mesons. Radiative B decays