Mesoscale analysis of ply-cracked composite laminates under in-plane and flexural thermo-mechanical loading