Pattern synthesis with minimum mainlobe width via sparse optimization