Fractional hinge and corner charges in various crystal shapes with cubic symmetry