Local solvability of certain differential complexes