write_mats_to_excel function

Write matrices to an Excel file