A natural modal expansion for the flexible robot arm problem via a self-adjoint formulation