Role of dispersive interactions in layered materials: a periodic B3LYP and B3LYP-D* study of Mg(OH)(2), Ca(OH)(2) and kaolinite