Nucleation and evolution of ridge-ridge-ridge triple junctions: Thermomechanical model and geometrical theory