An approximation to the complete active space method for conjugated systems with heteroatoms