A priori complete active space self consistent field localized orbitals: an application on linear polyenes