Bulgarian president resigns, seeks to become prime minister