A variational approach to stable principal component pursuit