Gauge theories on noncommutative spaces