Hardy-Poincaré inequalities with boundary singularities