Influences of hole- or pit-shaped defects on static and dynamic properties of rectangular submicron ferromagnetic particles