Compact solvmanifolds of dimension at most 4