Arbitrarily chirped DFB gratings for photonic devices using a new method based on bent waveguides