Methods of calculating cohomological and Hochschild-Mitchell dimensions of finite partially ordered sets