Elasto-plastic pre- and post-buckling analysis of functionally graded beams under mechanical loading