How regularization affects the critical points in linear networks