Canovai, Giovanni Battista, librettist