A theory of the infinite horizon LQ-problem for composite systems of PDEs with boundary control