Magnetic measurements on micrometer-sized samples under high pressure using designed NV centers