Implementation in Weakly Undominated Strategies: Optimality of Second-Price Auction and Posted-Price Mechanism