Aggregations: Added pre and post offset to histogram aggregation

Added preOffset and postOffset parameters to the API for the histogram aggregation which work in the same way as in the date histogram

Closes #6605
This looks very similar to PrePostTimeZoneRounding. Do you think we can reuse it?