Li and Be depletion in metal-poor subgiants