Pass RasterStack rather than r1 and r2