Modal control of thermoplasmonic behavior of nanostructures based on excitation of perfect absorption resonances