Resonant nonlinear boundary value problems with almost periodic nonlinearity