Measurement of semileptonic B decays into orbitally excited charmed mesons