Enabling Resource-efficient AIoT System with Cross-level Optimization: A survey