Mekanika Hamiltonan