Advanced photoacoustic and thermoacoustic sensing and imaging beyond pulsed absorption contrast