Static compliance of foundations of arbitrary shape