hamilton musical book based on