Gravitational wave generation in power-law inflationary models