Buckling and postbuckling of a compressed thin film bonded on a soft elastic layer: a three-dimensional analysis