Bosnia applies for EU membership