Postbuckling and free vibrations of composite beams