Evaluation of van der Waals density functionals for layered materials