On a general method of vibration analysis in curvilinear coordinates