MoO2/Mo heterostructures for hydrogen evolution reaction and ammonia sensing in self-powered mode