Photoluminescent logic gate controlled by the optical Kerr effect exhibited by porous silicon