The UK says it will do whatever it takes to secure the release of two British prisoners sentenced to death in a breakaway state in eastern Ukraine.