Analyses of the Pinning Mechanism for the Superconductor/Normal-Metal and Superconductor/Superconductor Multilayers