Efficient Acceleration of Stencil Applications through In-Memory Computing