Ukraine's leader says he is ready to give up his presidency if it will bring lasting peace and NATO membership.