Broadband control of the optical properties of semiconductors through site-controlled self-assembly of microcrystals