A flexibility-based model for linear analysis of arbitrarily curved arches