The optical counterparts and the environments of ultra-steep-spectrum radio sources