Polarimetric investigation of the nebula NGC 6618 and the neighboring stars