ROC: A Reconfigurable Optical Computer for Simulating Physical Processes