Theoretical and experimental analysis of the equilibrium contours of liquid bridges of arbitrary shape