Elements of the Theory of Structures: Inverse design of grillages