Demosaicking recognition with applications in digital photo authentication based on a quadratic pixel correlation model