Star formation triggering by density waves in the grand design spirals NGC 3992 and NGC 628