Formation, gravitational clustering, and interactions of nonrelativistic solitons in an expanding universe