Coherence synthesis with Spatial Light Modulators