On the upper embedding of Steiner triple systems and Latin squares