Method of conservation laws for constructing solutions to systems of PDEs