Parallel optical image addition and subtraction in a dynamic photorefractive memory by phase-code multiplexing