Self-similar thermal boundary layers on plane and axisymmetric bodies