Efficient photorefractive effect triggered by pyroelectricity in magnesium doped LiNbO3 films | Synapse