Bulgarians voted in a presidential election in which economic difficulties and the war in Ukraine were the leading issues for the country.