Sturmian functions in a L2 basis: critical nuclear charge for n-electron atoms