L-shell ionization by relativistic electrons and energy dependence of the Lβ/Lα branching ratio