A-posteriori local error estimates for some finite and boundary element methods