Fortification Design and Geometry in the Papers of Gaspare Beretta