Add a height parameter to getnetworkhashps

This patch allows the estimation of the network hash rate at the time when a certain block was found.