Mandy Moore preparing new music as she braces for ‘This Is Us’ farewell