Charm and Beauty Production from Semileptonic Decays at HERA