Nonconvex proximal splitting: batch and incremental algorithms