Mathematical optimisation of laminar forced convection heat transfer through a vascularised solid with square channels