Model and phase-diagram analysis of photothermal instabilities in an optomechanical resonator