European shares gain, Nikkei gets boost from weak yen