calculator for deflection and slope of cantilever