Added a new function getdifficulty()

It gets an array of the PoS and PoW difficulties.
getinfo() does not get this information