Implementation of simple logic gates on gold–ammonia bonding patterns in different charge states