Heat-induced changes in molecular biosignatures and the influence of Mars-relevant minerals