Extending perfect matchings to Hamiltonian cycles in line graphs