Bailey Palmer and substitute Younes Ibrahim scored as Brighton's under-21s beat West Ham 2-1 to stay top of Premier League Cup Group F.