Massive scalar Casimir interaction beyond proximity force approximation