Transition to chaotic vibrations for harmonically forced perfect and imperfect plates