Laser machining of strain defects to control excitons in cuprous oxide