Linear quadratic control for quadrotors UAVs dynamics and formation flight