Efficiently matching random inhomogeneous graphs via degree profiles