Three-dimensional contact analysis of layered elastic/plastic solids with rough surfaces