an analysis of the characters in the play hamlet by william shakespeare