Threshold conditions for sand movement on a rippled bed