K ⁎ (892) and ϕ(1020) production and their decay into the hadronic medium at the Large Hadron Collider