Conditions for transition from a plume to a dome above a heated horizontal area